package com.szl.group.template;


/**
 * 相关的错误码定义
 */
public enum ResultCodeEnum implements ResultCode {

    /*****************************通用********************************/
    OK("200", "OK"),
    ILLEGAL_PARAM("501", "非法参数"),
    THROWABLE_EXPECTION("613","抛出异常"),
    UNKNOWN_EXPECTION("500", "未知异常"),
    NO_LOGIN("530", "未登录"),
    PARAM_MISSING("502", "参数缺失"),
    NOT_EXISTS("503", "不存在"),
    STATUS_ERR("504", "状态错误"),
    SEND_SMS_ERR("505", "发送短信失败"),
    NAME_REPEAT("506", "名称重复"),
    NO_AUTHORITY("507", "没有权限"),
    UN_SUPPORTED_OPERATION("508", "不支持操作"),
    SYSTEM_EXPECTION("509", "系统异常"),
    TYPE_ERR("510", "类型错误"),
    FILE_UPLOAD_ERR("511", "文件上传异常"),
    ONLY_DEVICE("512", "账号已经在其他设备登录"),
    NO_DELETE_ERR("513", "不能删除"),
    NEED_CHECK_DEVICE("514", "需要验证设备"),
    USER_NON_EXISTENT("515", "用户不存在"),
    USER_PASSWORD_NON_EXISTENT("516", "用户密码未设置"),
    TELEPHONE_NOT_EXISTS("610", "手机号不存在"),

    PAY_THE_ABNORMAL("611", "微信退款异常,请稍后重试"),
    TOKEN_TIME_OUT_ERR("612", "accessToken超时")
    ;

    private String code;
    private String message;

    ResultCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
